dataSource {
	pooled = false
	driverClassName = "org.hsqldb.jdbcDriver"
	driverClassName = "org.postgresql.Driver"
        dialect=org.hibernate.dialect.PostgreSQLDialect
	username = "widgary"
	password = "widgary"
}

hibernate {
    cache.use_second_level_cache=true
    cache.use_query_cache=true
    cache.provider_class='org.hibernate.cache.EhCacheProvider'
}


// environment specific settings
environments {
	development {
		dataSource {

			dbCreate = "update" // one of 'create', 'create-drop', 'update'
			url = "jdbc:postgresql://localhost:5432/widgary"
		}
	}
	test {
		dataSource {
                        logSql = true
			dbCreate = "update"
			url = "jdbc:hsqldb:mem:testDb"
		}
	}
	production {
		dataSource {
			dbCreate = "update"
			url = "jdbc:postgresql://localhost:5432/widgary"
		}
	}
}
